﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Oya.Entities
{
    public class HabileteCollection : ICollection<Habilete>
    {
        public int Count
        {
            get
            {
                return ((ICollection<Habilete>)Habiletes).Count;
            }
        }

        public bool IsReadOnly
        {
            get
            {
                return ((ICollection<Habilete>)Habiletes).IsReadOnly;
            }
        }

        internal List<Habilete> Habiletes { get; set; }

        public Habilete Habilete
        {
            get
            {
                throw new System.NotImplementedException();
            }

            set
            {
            }
        }

        public void Add(Habilete item)
        {
            ((ICollection<Habilete>)Habiletes).Add(item);
        }

        public void Clear()
        {
            ((ICollection<Habilete>)Habiletes).Clear();
        }

        public bool Contains(Habilete item)
        {
            return ((ICollection<Habilete>)Habiletes).Contains(item);
        }

        public void CopyTo(Habilete[] array, int arrayIndex)
        {
            ((ICollection<Habilete>)Habiletes).CopyTo(array, arrayIndex);
        }

        public IEnumerator<Habilete> GetEnumerator()
        {
            return ((ICollection<Habilete>)Habiletes).GetEnumerator();
        }

        public bool Remove(Habilete item)
        {
            return ((ICollection<Habilete>)Habiletes).Remove(item);
        }

        IEnumerator IEnumerable.GetEnumerator()
        {
            return ((ICollection<Habilete>)Habiletes).GetEnumerator();
        }
    }
}
